package graph.group.zhangtao.guider.homepage.fragments;

import android.content.Intent;

import android.support.v4.app.Fragment;

import graph.group.zhangtao.guider.R;

/**
 * Created by T5 on 2016/6/16.
 */
public class  BaseFragment extends Fragment {
    @Override
    public void startActivity(Intent intent) {
        getActivity().startActivity(intent);
        getActivity().overridePendingTransition(R.anim.anim_in_right_to_left,R.anim.anim_out_righ_to_left);
    }

    @Override
    public void startActivityForResult(Intent intent, int requestCode) {
        getActivity().startActivityForResult(intent,requestCode);
        getActivity().overridePendingTransition(R.anim.anim_in_right_to_left, R.anim.anim_out_righ_to_left);
    }
}
